package com.sdhs.think.common.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.sdhs.think.common.persistence.BaseEntity;
import com.sdhs.think.common.persistence.CrudDao;

@Transactional(readOnly = true)
public abstract class CrudService<D extends CrudDao<T>, T extends BaseEntity<T>> extends BaseService{

	@Autowired
	protected D t;
	
	public T get(String id){
		return t.get(id);
	}
}
